package com.caocaog.market.merchant.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.caocaog.market.modules.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;

/**
 * @author liguang
 * @version 1.0.0
 * @Project jeecg-boot
 * @Package com.caocaog.market.merchant.entity
 * @ClassName MkMerchantBasic.java
 * @createTime 2021年11月24日 16:49:00
 * @Description 商家基础信息表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mk_merchant_basic")
@AllArgsConstructor
@NoArgsConstructor
public class MkMerchantBasic extends BaseEntity {
    @ApiModelProperty(value = "商家姓名")
    private String name;

    @ApiModelProperty(value = "身份证号或其它有效证件号（如：港澳台侨胞证号等）")
    private String idcard;

    @ApiModelProperty(value = "身份证件正面照片地址")
    private String frontIdcardUrl;

    @ApiModelProperty(value = "身份证件反而照片地址")
    private String backIdcardUrl;

    @ApiModelProperty(value = "手持身份证件照片地址")
    private String handHeldIdcardUrl;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "类型（字典项shop_type，可以有多项，逗号隔开；类型由分站在审核时指定）")
    @Dict(dicCode = "shop_type")
    private String type;

    @ApiModelProperty(value = "商家等级，字典项mk_merchant_grade；由分站在审核时指定")
    @Dict(dicCode = "merchant_grade")
    private Integer grade;

    @ApiModelProperty(value = "审核状态，字典项mk_merchant_check：待审核、审核通过、审核不通过")
    @Dict(dicCode = "shop_audit_status")
    private Integer state;

    @ApiModelProperty(value = "提现人支付宝账号")
    private String alipay;

    @ApiModelProperty(value = "提现人姓名")
    private String aliname;

    @ApiModelProperty(value = "审核不通过的原因")
    private String checkFailReason;

    @ApiModelProperty(value = "该商家对应的分站id（mk_site_basic表中的id）")
    private String siteId;

    @ApiModelProperty(value="该商家对应的用户id（sys_user表中的id）")
    private String userId;
    /**
     * 当前商户的的APPID
     */
    private String appid;
    /**
     * 当前商户的cusid
     */
    private String cusid;

    // 业务属性，用户名
    @TableField(exist = false)
    private String username;


}
